package com.icode.gulimall.auth.feign;

import com.icode.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: my_code
 * @Email: my_code@foxmail.com
 * @Create: 2021-01-02 15:55
 */
@FeignClient("gulimall-third-party")
public interface ThirdPartyFeignService {

    @ResponseBody
    @RequestMapping("/sms/sendcode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
